// For DataGrid.htc clients
function deleteRecord(webMethod){
	if(!checkWS()) event.returnValue = false;
	var ret = WS(CO(webMethod),_getID());
	if(showSOAPError(ret)) return event.returnValue = false;
}
function editRecord(webMethod){
	if(!checkWS()) event.returnValue = false;
	var ret = WS(CO(webMethod),_getID(),event.fieldName,event.fieldValue);
	if(showSOAPError(ret)) return event.returnValue = false;
}

function _getID(id){
	if( arguments.length > 0 )event.rs("ID").value = id;
	return event.rs("ID").value;
}
